#include<iostream>
#include<sys/types.h>
#include"UdpServer.hpp"
#include<memory>

using namespace std;


int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        cout<<"Usar:"<<argv[0]<<" port[1024+]"<<endl;
        exit(0);
    }
    uint16_t port=stoi(argv[1]);

    unique_ptr<UdpServer> svr(new UdpServer(port));
    svr->Init();
    svr->run();

    return 0;
}
